From: Keir Fraser Date: Thu, 14 Jan 2010 14:10:40 +0000 (+0000) Subject: libxc: Fix IOCTL_PRIVCMD_MMAPBATCH_V2 fallback check X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12735 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=2d8eb0f62d39abc9d1a49a808f1e69169ea23212;p=xen.git libxc: Fix IOCTL_PRIVCMD_MMAPBATCH_V2 fallback check privcmd_ioctl returns EINVAL if the type is not supported. This fixes the guest booting issue caused by C/S 20791. Signed-off-by: Dongxiao Xu Signed-off-by: Jan Beulich --- diff --git a/tools/libxc/xc_linux.c b/tools/libxc/xc_linux.c index e0e807f2cc..3f3bc10d95 100644 --- a/tools/libxc/xc_linux.c +++ b/tools/libxc/xc_linux.c @@ -180,7 +180,7 @@ void *xc_map_foreign_bulk(int xc_handle, uint32_t dom, int prot, } } - if ( rc < 0 && errno == ENOTTY && (int)num > 0 ) + if ( rc < 0 && errno == EINVAL && (int)num > 0 ) { /* * IOCTL_PRIVCMD_MMAPBATCH_V2 is not supported - fall back to